import Vue from 'vue'
import App from './App.vue'
import router from './router'

import 'element-ui/lib/theme-chalk/index.css'
import ElementUI from 'element-ui'

import axios from 'axios'

Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.prototype.$axios = axios
axios.interceptors.request.use(
    config=>{
        config.headers.common["auth"] = window.sessionStorage.getItem("auth")
        return config
    },
    error=>{
        return Promise.reject(error);
    }
)
new Vue({
    router,
    render: h => h(App),
}).$mount('#app')
